<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <title>ak test page</title>
  </head>
  <body>
    <h1>ak test page</h1>
    <a href="{% url MainController#Test %}">test</a>
    <a href="{% url MainController#Error %}">error</a>
    <a href="{% url HelloController "world" %}">hello world</a>
    <h2>Request</h2>
    <dl>
      <dt>method</dt>
      <dd>{{ request.method }}</dd>
      <dt>path</dt>
      <dd>{{ request.path }}</dd>
      <dt>fullPath</dt>
      <dd>{{ request.fullPath }}</dd>
      <dt>uri</dt>
      <dd>{{ request.uri }}</dd>
      <dt>user</dt>
      <dd>{{ request.user }}</dd>
      <dt>session</dt>
      <dd>{{ request.session }}</dd>
      <dt>csrfToken</dt>
      <dd>{{ request.csrfToken }}</dd>
      <dt>get</dt>
      <dd>
        {% for item in request.get %}
          <p>{{ item.0 }} {{ item.1 }}</p>
        {% endfor %}
      </dd>
      <dt>post</dt>
      <dd>
        {% for item in request.post %}
          <p>{{ item.0 }} {{ item.1 }}</p>
        {% endfor %}
      </dd>
      <dt>files</dt>
      <dd>
        {% for item in request.files %}
          <p>{{ item.0 }}</p>
          <textarea rows=20 cols=80>{{ item.1.data }}</textarea>
        {% endfor %}
      </dd>
      <dt>headers</dt>
      <dd>
        <dl>
          {% for header in request.headers %}
            <dt>{{ header.0 }}</dt>
            <dd>{{ header.1 }}</dd>
          {% endfor %}
        </dl>
      </dd>
    </dl>
    <h2>Get form</h2>
    <form action="." method=get>
      <p>
        <label for=x>x:</label>
        <input id=x type=text name=x />
      </p>
      <p>
        <label for=y>y:</label>
        <input id=y type=text name=y />
      </p>
      <input type=submit />
    </form>
    <h2>Post form</h2>
    <form action="." method=post enctype="multipart/form-data">
      {% csrfToken %}
      <p>
        <label for=a>a:</label>
        <input id=a type=text name=a />
      </p>
      <p>
        <label for=b>b:</label>
        <input id=b type=text name=b />
      </p>
      <p>
        <label for=file1>file1:</label>
        <input id=file1 type=file name="file1" />
      </p>
      <p>
        <label for=file2>file2:</label>
        <input id=file2 type=file name="file2" />
      </p>
      <input type=submit />
    </form>
    
  </body>
</html>
